import {get, post} from "./axios";

// 获取面经
export function getArticle(userId) {
  return get('/article/detail/' + userId)
}

// 获取评论信息
export function comment(data) {
  return post('/article/comment', data)
}

// 获取面经用户数据
export function getUserInfo(data) {
  return post('/user/info', data)
}

// 删除面经评论
export function delComment(data) {
  return post('/article/removeComment', data)
}

// 提取用户信息
export class GetUserBaseInfo {
  constructor(userInfo) {
    this.name = userInfo.nickname
    this.avatar = userInfo.avatar
  }
}
